import request from '@/utils/request'

// 查询用户投诉列表
export function listComplaint(query) {
  return request({
    url: '/feedback/complaint/list',
    method: 'get',
    params: query
  })
}

// 查询用户投诉详细
export function getComplaint(id) {
  return request({
    url: '/feedback/complaint/getById/' + id,
    method: 'get'
  })
}

//处理用户投诉
export function updateComplaint(data) {
  return request({
    url: '/feedback/complaint',
    method: 'put',
    data: data
  })
}
